import * as Router from "koa-router";
const route = new Router({ prefix: "/game" })
import { Restfull } from "../../config/resModel"

import {set,get ,client} from "../../redis"
import { jwtAuth } from "../../middleware/jwt"
import { dirExist } from "../../middleware/dirExist"
import { GameCON } from "../../routerController/game"
import { createScriptCheck } from "../../middleware/paramsCheck"

route.use(jwtAuth)
//创建准备游戏
route.post("/createGame",GameCON.createGame )
//结束准备游戏
route.post("/overReadyGame",GameCON.overReadyGame)

//开始游戏
route.post("/startGame",GameCON.startGame)

//判断是不是当前准备房间的DM
// route.

//查询某一条游戏信息
route.get("/gameInfo",GameCON.gameInfo)

//结束准备游戏
route.post("/overGame",GameCON.overGame)


export {
    route
}